package com.bilibili.java.bookpage.bean;



import java.util.Date;

import com.bilibili.java.books.bean.User;


/**
 * 订单实体类
 * @author Administrator
 *
 */
public class Orders {
		private int id;//编号
		private double sumPrice;//订单总价
		private int totalNum;//数量
		private User user;//用户对象
		private Code code;//状态
		
		private Address address;//收货人信息
		
		private String trackNum;
		
	
		
		@Override
		public String toString() {
			return "Orders [id=" + id + ", sumPrice=" + sumPrice + ", totalNum=" + totalNum + ", user=" + user
					+ ", code=" + code + ", address=" + address + ", trackNum=" + trackNum + ", createtime="
					+ createtime + ", orderInfo=" + orderInfo + "]";
		}

		private Date createtime;//订单生成时间
		
		private OrderInfo orderInfo;//订单对象

		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public double getSumPrice() {
			return sumPrice;
		}

		public void setSumPrice(double sumPrice) {
			this.sumPrice = sumPrice;
		}

		public int getTotalNum() {
			return totalNum;
		}

		public void setTotalNum(int totalNum) {
			this.totalNum = totalNum;
		}

		public User getUser() {
			return user;
		}

		public void setUser(User user) {
			this.user = user;
		}

		public Code getCode() {
			return code;
		}

		public void setCode(Code code) {
			this.code = code;
		}

		public Address getAddress() {
			return address;
		}

		public void setAddress(Address address) {
			this.address = address;
		}

		public String getTrackNum() {
			return trackNum;
		}

		public void setTrackNum(String trackNum) {
			this.trackNum = trackNum;
		}

		public Date getCreatetime() {
			return createtime;
		}

		public void setCreatetime(Date createtime) {
			this.createtime = createtime;
		}

		public OrderInfo getOrderInfo() {
			return orderInfo;
		}

		public void setOrderInfo(OrderInfo orderInfo) {
			this.orderInfo = orderInfo;
		}

		public Orders(int id, double sumPrice, int totalNum, User user, Code code, Address address, String trackNum,
				Date createtime, OrderInfo orderInfo) {
			super();
			this.id = id;
			this.sumPrice = sumPrice;
			this.totalNum = totalNum;
			this.user = user;
			this.code = code;
			this.address = address;
			this.trackNum = trackNum;
			this.createtime = createtime;
			this.orderInfo = orderInfo;
		}

		public Orders() {
			super();
		}
		
		
}
